/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package checkers.businessLogic.entity;

import java.sql.Timestamp;
import java.util.Date;

/**
 *
 * @author artinshahverdian
 */
public class GameTable {

    private int id, userId1, userId2, winner;
    private Timestamp creationDate, terminationDate;
    private boolean isGuest;

    /**
     * @return the id
     */
    public GameTable(int userId1, int userId2, int winnerId, Timestamp creationDate, Timestamp terminationDate, boolean isGuest) {

        this.userId1 = userId1;
        this.userId2 = userId2;
        this.winner = winnerId;
        this.creationDate = creationDate;
        this.terminationDate = terminationDate;
        this.isGuest = isGuest;
    }

    public int getId() {
        return id;
    }

    /**
     * @return the userId1
     */
    public int getUserId1() {
        return userId1;
    }

    /**
     * @param userId1 the userId1 to set
     */
    public void setUserId1(int userId1) {
        this.userId1 = userId1;
    }

    /**
     * @return the userId2
     */
    public int getUserId2() {
        return userId2;
    }

    /**
     * @param userId2 the userId2 to set
     */
    public void setUserId2(int userId2) {
        this.userId2 = userId2;
    }

    /**
     * @return the winner
     */
    public int getWinner() {
        return winner;
    }

    /**
     * @param winner the winner to set
     */
    public void setWinner(int winner) {
        this.winner = winner;
    }

    /**
     * @return the creationDate
     */
    public Date getCreationDate() {
        return creationDate;
    }

    /**
     * @param creationDate the creationDate to set
     */
    public void setCreationDate(Timestamp creationDate) {
        this.creationDate = creationDate;
    }

    /**
     * @return the isGuest
     */
    public boolean isGuest() {
        return isGuest;
    }

    /**
     * @param isGuest the isGuest to set
     */
    public void setIsGuest(boolean isGuest) {
        this.isGuest = isGuest;
    }

    /**
     * @return the terminationDate
     */
    public Date getTerminationDate() {
        return terminationDate;
    }

    /**
     * @param terminationDate the terminationDate to set
     */
    public void setTerminationDate(Timestamp terminationDate) {
        this.terminationDate = terminationDate;
    }
}
